package com.cx.service.impl;

import com.cx.mapper.OrderMapper;
import com.cx.pojo.Order;
import com.cx.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements OrderService {
@Autowired
OrderMapper orderMapper;
    @Override
    public int insert(Order record) {
        return orderMapper.insert(record);
    }

    @Override
    public List<Order> getOrderInfoByUserName(String userName) {
        return orderMapper.getOrderInfoByUserName(userName);
    }
}
